package com.filter;


import java.text.SimpleDateFormat;

import com.netflix.zuul.ZuulFilter;


public class MySecondPostFilter extends ZuulFilter{

	public Object run() {		
		System.out.println("this is my second post filter");
		
		SimpleDateFormat timeFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS");
		System.out.println(timeFormat.format(new java.util.Date()));
		
		return null;
	}

	public boolean shouldFilter() {
		return true;
	}

	@Override
	public int filterOrder() {
		return 5;
	}

	@Override
	public String filterType() {
		return "post";
	}

}
